<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
    <p>hello</p>
    <input type="button" id="a" name="">隐藏按钮
    <script>
        $(function(){
            $("#a").click(function(){
                $("p"). hide();
            })
           
        })
    </script>
</body>
</html>